package com.zlm.Thread;

/**
 * @author 13026
 */
public class MyThread2 implements Runnable {
    // 无返回值，无法获取多线程运行的结果
    @Override
    public void run() {
        // 获取当前线程对象
        Thread t = Thread.currentThread();
        for (int i = 0; i < 10; i++) {
            System.out.println(t.getName() + "hello word");
        }
    }
}
